package com.nix.role;

import com.nix.maze.Lattice;
import org.junit.jupiter.api.Test;

import java.util.ArrayList;

/**
 * @author zhangpei
 * @Email zhangpe0312@qq.com
 * @day 2017/12/5 14:21
 * @Use
 */
public class HistoryRecord {
   private static ArrayList<Lattice> history = new ArrayList<>();

    public static ArrayList<Lattice> getHistory() {
        return history;
    }

    public static void clearHistory(){
        history.clear();;
    }

    public static void printfHistory(){
        System.out.println("你的历史记录为:");
        for(Lattice lattice : history){
            System.out.println(lattice);
        }
    }

  @Test
    public void test(){
      printfHistory();
  }
}
